package com.snow.campuslink.bbs.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @author Gaosl
 * @className UserLoginFeignServer
 * @date 2021/2/14 13:47
 */

@FeignClient("user-login-server")
public interface UserLoginFeignServer {
    /**
     * TODO
     *
     * @param userId
     * @author Gaosl
     * @date 2021/2/14 13:52
     * @return java.lang.String
     */
    @GetMapping("/user/user/getUsername/{userId}")
    String getUsernameById(@PathVariable(value = "userId") Long userId);
}
